package com.hwadee.springboot_lx.entity;

import jakarta.persistence.*;
import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
@Entity
@Table(name = "analysis")
public class Analysis {
    @Id
    @Column(name = "AnalysisID", nullable = false)
    private Integer id;

    @ManyToOne(fetch = FetchType.LAZY,optional = false)
    @JoinColumn(name = "StudentID", nullable = false)
    private Student studentID;

    @OneToOne(fetch = FetchType.LAZY,optional = false)
    @JoinColumn(name = "ClassID", nullable = false)
    private Class classID;

    @Lob
    @Column(name = "Result")
    private String result;

}